﻿package com.pandemicode.framework.smtp.mailer.parts {
	import com.adobe.crypto.MD5;
	import com.pandemicode.framework.smtp.mailer.Mailer;
	/**
	* @author Mike Lawrence
	*/
	public class Boundary {
		private var _value:String;
		public function get value():String { return this._value; }
		public function get valueDashed():String { return "--" + this._value + Mailer.NEWLINE; }
		
		private static var _count:Number = 0;
		
		public function Boundary() {
			this._value = MD5.hash(String(new Date()) + _count);
			_count++;
		}
		
		public function toString():String {
			return this._value;
		}
	}
}
